package com.yanqu.road.entity.activity.biaoju.config;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.sql.ResultSet;
import java.sql.SQLException;

@FieldTypeAnnotation(tableName = "t_s_activity_biaoju_city", desc = "镖局地点表")
public class BiaoJuCityConfig extends DataObject {
    @FieldTypeAnnotation(select = true, isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "地点Id", isIndex = true)
    private int id;
    @FieldTypeAnnotation(desc = "地点名称")
    private String name;
    @FieldTypeAnnotation(desc = "港口介绍")
    private String desc;
    @FieldTypeAnnotation(desc = "图标")
    private String icon;
    @FieldTypeAnnotation(desc = "client_系统位置")
    private String picPos;
    @FieldTypeAnnotation(desc = "client_系统区域")
    private String picSize;
    @FieldTypeAnnotation(desc = "client_系统名称")
    private String titlePos;
    @FieldTypeAnnotation(desc = "是否初始地点（1是0否")
    private int eventType;

    public BiaoJuCityConfig(ResultSet rs) throws SQLException {
        this.activityId = rs.getInt("activityId");
        this.id = rs.getInt("id");
        this.name = rs.getString("name");
        this.desc = rs.getString("desc");
        this.icon = rs.getString("icon");
        this.picPos = rs.getString("picPos");
        this.picSize = rs.getString("picSize");
        this.titlePos = rs.getString("titlePos");
        this.eventType = rs.getInt("eventType");
    }

    public int getActivityId() {
        return activityId;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getDesc() {
        return desc;
    }

    public String getIcon() {
        return icon;
    }

    public String getPicPos() {
        return picPos;
    }

    public String getPicSize() {
        return picSize;
    }

    public String getTitlePos() {
        return titlePos;
    }

    public int getEventType() {
        return eventType;
    }
}
